package com.zmc.lostfound.common.constant;

/**
 * @author zmc
 * @description 用户认证服务常量池
 */
public class AuthConstant {

    /**
     * 用户默认头像访问链接
     */
    public static final String DEFAULT_IMG_URL = "https://lost-found-forum.oss-cn-beijing.aliyuncs.com/2023/07/08/28b1bf5d-6a26-4b2b-a65a-647734737abf_ikun.png";

    /**
     * 用户账号状态枚举
     */
    public enum UserDisableEnum {

        /**
         * 0: 该用户未封号
         */
        ENABLE(0, "该用户未封号"),

        /**
         * 1: 该用户被封号
         */
        DISABLE(1, "该用户被封号");

        /**
         * 码
         */
        private final Integer code;

        /**
         * 说明
         */
        private final String description;

        UserDisableEnum(Integer code, String description) {
            this.code = code;
            this.description = description;
        }

        public Integer getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

    /**
     * 角色枚举
     */
    public enum RoleEnum {

        /**
         * super-admin: 超级管理员
         */
        SUPER_ADMIN("super-admin", "超级管理员"),

        /**
         * admin: 管理员
         */
        ADMIN("admin", "管理员"),

        /**
         * auditor: 审核员
         */
        AUDITOR("auditor", "审核员"),

        /**
         * user: 普通用户
         */
        USER("user", "普通用户");

        /**
         * 码
         */
        private final String code;

        /**
         * 说明
         */
        private final String description;

        RoleEnum(String code, String description) {
            this.code = code;
            this.description = description;
        }

        public String getCode() {
            return code;
        }

        public String getDescription() {
            return description;
        }

    }

}
